html {
  font-size: 16px;
  line-height: 1.4;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: url(/bg.svg) no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  box-sizing: border-box;
  padding-bottom: 10vh;
}

main {
  display: grid;
  grid-template: 1 / 1;

  box-sizing: border-box;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.15);
  border-radius: 6px;
  height: 300px;
  width: 600px;
}

main > * {
  position: relative;
  grid-area: 1/1;
  transition: all 0.3s 0.3s cubic-bezier(0.5, 0, 0.5, 1);
  transition-property: opacity, transform;

  text-align: center;
  display: block;
}

main > *[aria-hidden="true"] {
  display: initial;
  pointer-events: none;
  transition-delay: 0s;
  opacity: 0;
  transform: scale(0.8);
}

fieldset {
  all: unset;
  display: flex;
  gap: 0.25rem;
  margin-top: 2rem;
}

button,
input {
  padding: 0.5rem 1rem;
  border: solid 1px;
  border-radius: 4px;
  line-height: 1.4;
  font-size: 1.125rem;
}

button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px hsl(42deg 100% 68%);
}

input {
  width: 12rem;
  border-color: #ccc;
  font-family: inherit;
}

button {
  width: 10rem;
  background: hsl(243deg 85% 73%);
  border-color: hsl(243deg 85% 63%);
  color: white;
}

button:active {
  background: hsl(243deg 85% 63%);
}

h2 {
  outline: none;
  margin-bottom: 0;
}

h2 + p {
  margin-top: 0;
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important; /* 2 */
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important; /* 3 */
}
